package cn.kgc.eduservice.controller;

import cn.kgc.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName EduLoginController
 * @Description: TODO
 * @Author :郭建宾
 * @Date 2020/6/30
 * @Version V1.0
 **/
@RestController
@RequestMapping("/eduservice/user")
//@CrossOrigin
public class EduLoginController {

    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","http://a3.att.hudong.com/14/75/01300000164186121366756803686.jpg");
    }
}
